﻿using UnityEngine;

namespace JQMergeFramework
{
    public class RoofUnit: MonoBehaviour
    {
        public MeshFilter mMeshFilter;
        public ParticleSystem fireworks, smoke;
        
        public void SetMesh(Mesh mesh,Vector3 pos,bool isShow = true)
        {
            mMeshFilter.mesh = mesh;

            this.transform.position = pos;
            this.transform.localScale = Vector3.one;
            SetShow(isShow);
        }

        public void SetShow(bool isShow)
        {
            this.gameObject.SetActive(isShow);
        }
        
    }
}